package com.fd.cloud.fdftp.Pool;

import com.fd.cloud.fdftp.factory.FtpClientFactory;
import com.fd.cloud.fdftp.model.FtpConfigOptions;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.pool2.ObjectPool;
import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;

public class FtpClientPool extends GenericObjectPool<FTPClient> {
    private FtpClientFactory ftpClientFactory;
    private FtpConfigOptions ftpConfigOptions;

    public FtpClientPool(FtpClientFactory ftpClientFactory,FtpConfigOptions ftpConfigOptions) {
        super(ftpClientFactory,ftpConfigOptions);
        this.ftpClientFactory=ftpClientFactory;
        this.ftpConfigOptions=ftpConfigOptions;
    }
}
